#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

int subsetXORSum(int* nums, int numsSize) {
    int sum = 0;
    for (int i = 0; i < (1 << numsSize); i++)
    {
        int res = 0;
        for (int j = 0; j < numsSize; j++)
        {
            if (i & (1 << j))
                res ^= nums[j];
        }
        sum += res;
    }
    return sum;
}


int main()
{

	return 0;
}